<?php
namespace app\admin\model;


use think\Model;
use think\model\concern\SoftDelete;

class Users extends Model
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    public function getStatusAttr($value){
        $status = [
            '1'     =>  '正常',
            '2'     =>  '已冻结',
        ];
        return $status[$value];
    }
    public function getTeamAttr($value){
        $team = [
            '1'     =>  '一团',
            '2'     =>  '二团',
            '3'     =>  '三团',
            '4'     =>  '四团',
        ];
        return $team[$value];
    }
    public function getBindAttr($value){
        $text = empty($value) ? '未绑定' : '已绑';
        return $text;
    }
    public function getSexAttr($value){
        $sex = [
            1     =>  '男',
            0     =>  '女',
        ];
        return $sex[$value];
    }
}